import lombok.extern.slf4j.Slf4j;
import org.junit.Test;

@Slf4j  
public class MyService {  

    @Test
    public void doSomething() {  
        log.debug("This is a debug message");  
        log.info("This is an info message");  
        log.warn("This is a warn message");  
        log.error("This is an error message", new RuntimeException("Oops!"));  
    }  
}
